package com.pactera.homework.first.method3;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Description: TODO
 * @Author: hejiayao
 * @CreateDate: 2022/12/8 15:43
 * @UpdateUser: hejiayao
 * @UpdateDate: 2022/12/8 15:43
 * @className: Main
 * @Package : com.pactera.homework.first
 * @Version: 1.0
 */
public class Main {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("application.xml");
        Somebody somebody = (Somebody) context.getBean("lihua");
        somebody.usePhone();
        Somebody someone = (Somebody) context.getBean("xiaoming");
        someone.usePhone();
    }
}
